package com.richard.base.util

import android.content.Context
import android.graphics.Typeface
import com.richard.base.R
import java.lang.reflect.Field


/**
 ***************************************
 * 项目名称:Giggle
 * @Author wuzhiguo
 * 邮箱：wuzhiguo@ksjgs.com
 * 创建时间: 2020/8/8     7:53 PM
 * 用途:
 ***************************************
 */

object Random {
    private val randomPic = mutableListOf(
        R.drawable.bg_ran_0,
        R.drawable.bg_ran_1,
        R.drawable.bg_ran_2,
        R.drawable.bg_ran_3,
        R.drawable.bg_ran_4,
        R.drawable.bg_ran_5,
        R.drawable.bg_ran_6,
        R.drawable.bg_ran_7,
        R.drawable.bg_ran_8,
        R.drawable.bg_ran_9,
        R.drawable.bg_ran_10,
        R.drawable.bg_ran_11,
        R.drawable.bg_ran_12,
        R.drawable.bg_ran_13,
        R.drawable.bg_ran_14,
        R.drawable.bg_ran_15,
        R.drawable.bg_ran_16,
        R.drawable.bg_ran_17,
        R.drawable.bg_ran_18,
        R.drawable.bg_ran_19,
        R.drawable.bg_ran_20,
        R.drawable.bg_ran_21,
        R.drawable.bg_ran_22,
        R.drawable.bg_ran_25,
        R.drawable.bg_ran_24,
        R.drawable.bg_ran_25,
        R.drawable.bg_ran_26,
        R.drawable.bg_ran_27,
        R.drawable.bg_ran_28
    )


    fun getRandomPic():Int {
        return randomPic[(0 until randomPic.size).random()]
    }

}